package com.azt.provider.mapper;

import com.azt.api.dto.EnqQuoteItemExt;
import com.azt.api.pojo.EnqQuoteItem;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;
import java.util.Map;

/**
 * The interface Enq quote item mapper.
 */
public interface EnqQuoteItemMapper extends Mapper<EnqQuoteItem> {
    /**
     * 预算详情
     * <p>
     * Created by 张栋 on 2016/9/20 13:14
     *
     * @param quoteId    报价id
     * @param categroyId 类目id
     */
    List<EnqQuoteItemExt> getBudgetDetailByQIDAndCID(@Param("quoteId") Integer quoteId, @Param("categroyId") Integer categroyId);


    /**
     * 根据quoteId 获取报价详情
     *
     * @param quoteId
     * @return
     */
    List<EnqQuoteItem> getItemByQuote(Integer quoteId);

    /**
     * 比价, 根据商品名称, 查该商品名对应的报价里的最低价
     * return null 时代表没找到
     * Created by 张栋 on 2017/3/16 14:12
     */
    Map reference(String name);
}